[INFO] cloning repository https://github.com/RemydreScarlet/ruix
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RemydreScarlet/ruix" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRemydreScarlet%2Fruix", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRemydreScarlet%2Fruix'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e94d5dc2df822b05f6c1bf6fb534372ba26e8822
[INFO] fixing RemydreScarlet/ruix against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRemydreScarlet%2Fruix" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] removed /workspace/builds/worker-7-tc1/source/.cargo/config.toml
[INFO] started tweaking git repo https://github.com/RemydreScarlet/ruix
[INFO] finished tweaking git repo https://github.com/RemydreScarlet/ruix
[INFO] tweaked toml for git repo https://github.com/RemydreScarlet/ruix written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/RemydreScarlet/ruix on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/RemydreScarlet/ruix already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: unused manifest key: lib.autotests
[INFO] [stderr] warning: Cargo.toml: unused manifest key: package.test
[INFO] [stderr] warning: `ruix` (manifest) generated 2 warnings
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded volatile v0.4.6
[INFO] [stderr]   Downloaded zero v0.1.3
[INFO] [stderr]   Downloaded uart_16550 v0.2.19
[INFO] [stderr]   Downloaded xmas-elf v0.9.1
[INFO] [stderr]   Downloaded x86_64 v0.14.13
[INFO] [stderr]   Downloaded crossbeam-queue v0.2.3
[INFO] [stderr]   Downloaded pic8259 v0.10.4
[INFO] [stderr]   Downloaded conquer-once v0.2.1
[INFO] [stderr]   Downloaded conquer-util v0.2.0
[INFO] [stderr]   Downloaded pc-keyboard v0.7.0
[INFO] [stderr]   Downloaded linked_list_allocator v0.9.1
[INFO] [stderr]   Downloaded bootloader v0.9.33
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 6b74c977618644595f8263ed86ed8ae1960b8e73ab59393b29f113160a15e468
[INFO] running `Command { std: "docker" "start" "6b74c977618644595f8263ed86ed8ae1960b8e73ab59393b29f113160a15e468", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6b74c977618644595f8263ed86ed8ae1960b8e73ab59393b29f113160a15e468" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6b74c977618644595f8263ed86ed8ae1960b8e73ab59393b29f113160a15e468", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6b74c977618644595f8263ed86ed8ae1960b8e73ab59393b29f113160a15e468" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: unused manifest key: lib.autotests
[INFO] [stderr] warning: Cargo.toml: unused manifest key: package.test
[INFO] [stderr] warning: `ruix` (manifest) generated 2 warnings
[INFO] [stderr]    Compiling maybe-uninit v2.0.0
[INFO] [stderr]    Compiling bootloader v0.9.33
[INFO] [stderr]     Checking bit_field v0.10.3
[INFO] [stderr]     Checking volatile v0.4.6
[INFO] [stderr]     Checking bitflags v2.10.0
[INFO] [stderr]     Checking scopeguard v1.2.0
[INFO] [stderr]     Checking spin v0.9.8
[INFO] [stderr]     Checking conquer-util v0.2.0
[INFO] [stderr]    Compiling crossbeam-utils v0.7.2
[INFO] [stderr]     Checking spinning_top v0.2.5
[INFO] [stderr]     Checking zero v0.1.3
[INFO] [stderr]     Checking cfg-if v0.1.10
[INFO] [stderr]     Checking futures-core v0.3.31
[INFO] [stderr]     Checking pin-utils v0.1.0
[INFO] [stderr]     Checking linked_list_allocator v0.9.1
[INFO] [stderr]     Checking xmas-elf v0.9.1
[INFO] [stderr]     Checking futures-task v0.3.31
[INFO] [stderr]     Checking lock_api v0.4.14
[INFO] [stderr]     Checking conquer-once v0.2.1
[INFO] [stderr]     Checking bitflags v1.3.2
[INFO] [stderr]     Checking lazy_static v1.5.0
[INFO] [stderr]     Checking futures-util v0.3.31
[INFO] [stderr]     Checking x86_64 v0.14.13
[INFO] [stderr]     Checking volatile v0.2.7
[INFO] [stderr]     Checking pin-project-lite v0.2.16
[INFO] [stderr]     Checking pc-keyboard v0.7.0
[INFO] [stderr]     Checking spin v0.5.2
[INFO] [stderr]     Checking crossbeam-queue v0.2.3
[INFO] [stderr]     Checking uart_16550 v0.2.19
[INFO] [stderr]     Checking pic8259 v0.10.4
[INFO] [stderr]     Checking ruix v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `AllocError`
[INFO] [stdout]  --> src/memory/scalable.rs:6:47
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::error::{KernelError, KernelResult, AllocError};
[INFO] [stdout]   |                                               ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloc::sync::Arc`
[INFO] [stdout]   --> src/memory/scalable.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use alloc::sync::Arc;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `lazy_static::lazy_static`
[INFO] [stdout]   --> src/memory/scalable.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | use lazy_static::lazy_static;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `dealloc`
[INFO] [stdout]    --> src/memory/scalable.rs:459:39
[INFO] [stdout]     |
[INFO] [stdout] 459 |             use alloc::alloc::{alloc, dealloc, Layout};
[INFO] [stdout]     |                                       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `KernelError`
[INFO] [stdout]  --> src/process/mod.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::error::{KernelError, ProcessError};
[INFO] [stdout]   |                    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `KernelError`
[INFO] [stdout]  --> src/process/scheduler.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::error::{KernelError, ProcessError};
[INFO] [stdout]   |                    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloc::boxed::Box`
[INFO] [stdout]  --> src/process/scheduler.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use alloc::boxed::Box;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `PhysFrame` and `Translate`
[INFO] [stdout]  --> src/process/elf.rs:2:75
[INFO] [stdout]   |
[INFO] [stdout] 2 |     structures::paging::{OffsetPageTable, FrameAllocator, Size4KiB, Page, Translate, PhysFrame},
[INFO] [stdout]   |                                                                           ^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::memory::BootInfoFrameAllocator`
[INFO] [stdout]  --> src/process/stack.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::memory::BootInfoFrameAllocator;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::kerror`
[INFO] [stdout]  --> src/process/stack.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::kerror;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ProcessError`
[INFO] [stdout]  --> src/process/task.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::error::{KernelResult, ProcessError};
[INFO] [stdout]   |                                  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `KernelError` and `KernelResult`
[INFO] [stdout]  --> src/process/process_group.rs:3:20
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::error::{KernelError, KernelResult};
[INFO] [stdout]   |                    ^^^^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::kerror`
[INFO] [stdout]  --> src/process/process_group.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::kerror;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `set_current_process_id`
[INFO] [stdout]   --> src/ipc.rs:17:46
[INFO] [stdout]    |
[INFO] [stdout] 17 | use crate::syscall::{get_current_process_id, set_current_process_id};
[INFO] [stdout]    |                                              ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::allocator`
[INFO] [stdout]    --> src/cpu.rs:272:9
[INFO] [stdout]     |
[INFO] [stdout] 272 |     use crate::allocator;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloc::vec`
[INFO] [stdout]   --> src/testing.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use alloc::vec;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `String`
[INFO] [stdout]   --> src/tests/mod.rs:10:21
[INFO] [stdout]    |
[INFO] [stdout] 10 | use alloc::string::{String, ToString};
[INFO] [stdout]    |                     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stdout]   --> src/lib.rs:36:1
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub mod tests;
[INFO] [stdout]    | ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloc::vec`
[INFO] [stdout]   --> src/tests/mod.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use alloc::vec;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stdout]   --> src/lib.rs:36:1
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub mod tests;
[INFO] [stdout]    | ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `x86_64::VirtAddr`
[INFO] [stdout]   --> src/tests/mod.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use x86_64::VirtAddr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stdout]   --> src/lib.rs:36:1
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub mod tests;
[INFO] [stdout]    | ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::error::KernelError`
[INFO] [stdout]   --> src/tests/ipc_tests.rs:7:5
[INFO] [stdout]    |
[INFO] [stdout]  7 | use crate::error::KernelError;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stdout]   --> src/tests/mod.rs:15:1
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub mod ipc_tests;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloc::vec::Vec`
[INFO] [stdout]   --> src/tests/ipc_tests.rs:9:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | use alloc::vec::Vec;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stdout]   --> src/tests/mod.rs:15:1
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub mod ipc_tests;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `String`
[INFO] [stdout]   --> src/tests/ipc_tests.rs:10:21
[INFO] [stdout]    |
[INFO] [stdout] 10 | use alloc::string::{String, ToString};
[INFO] [stdout]    |                     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stdout]   --> src/tests/mod.rs:15:1
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub mod ipc_tests;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AllocError`
[INFO] [stdout]  --> src/memory/scalable.rs:6:47
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::error::{KernelError, KernelResult, AllocError};
[INFO] [stdout]   |                                               ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloc::sync::Arc`
[INFO] [stdout]   --> src/memory/scalable.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use alloc::sync::Arc;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `lazy_static::lazy_static`
[INFO] [stdout]   --> src/memory/scalable.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | use lazy_static::lazy_static;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `dealloc`
[INFO] [stdout]    --> src/memory/scalable.rs:459:39
[INFO] [stdout]     |
[INFO] [stdout] 459 |             use alloc::alloc::{alloc, dealloc, Layout};
[INFO] [stdout]     |                                       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `KernelError`
[INFO] [stdout]  --> src/process/mod.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::error::{KernelError, ProcessError};
[INFO] [stdout]   |                    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `KernelError`
[INFO] [stdout]  --> src/process/scheduler.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::error::{KernelError, ProcessError};
[INFO] [stdout]   |                    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloc::boxed::Box`
[INFO] [stdout]  --> src/process/scheduler.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use alloc::boxed::Box;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `PhysFrame` and `Translate`
[INFO] [stdout]  --> src/process/elf.rs:2:75
[INFO] [stdout]   |
[INFO] [stdout] 2 |     structures::paging::{OffsetPageTable, FrameAllocator, Size4KiB, Page, Translate, PhysFrame},
[INFO] [stdout]   |                                                                           ^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::memory::BootInfoFrameAllocator`
[INFO] [stdout]  --> src/process/stack.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::memory::BootInfoFrameAllocator;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::kerror`
[INFO] [stdout]  --> src/process/stack.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::kerror;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ProcessError`
[INFO] [stdout]  --> src/process/task.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::error::{KernelResult, ProcessError};
[INFO] [stdout]   |                                  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `KernelError` and `KernelResult`
[INFO] [stdout]  --> src/process/process_group.rs:3:20
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::error::{KernelError, KernelResult};
[INFO] [stdout]   |                    ^^^^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::kerror`
[INFO] [stdout]  --> src/process/process_group.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::kerror;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `set_current_process_id`
[INFO] [stdout]   --> src/ipc.rs:17:46
[INFO] [stdout]    |
[INFO] [stdout] 17 | use crate::syscall::{get_current_process_id, set_current_process_id};
[INFO] [stdout]    |                                              ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::allocator`
[INFO] [stdout]    --> src/cpu.rs:272:9
[INFO] [stdout]     |
[INFO] [stdout] 272 |     use crate::allocator;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloc::vec`
[INFO] [stdout]   --> src/testing.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use alloc::vec;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `String`
[INFO] [stdout]   --> src/tests/mod.rs:10:21
[INFO] [stdout]    |
[INFO] [stdout] 10 | use alloc::string::{String, ToString};
[INFO] [stdout]    |                     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stdout]   --> src/lib.rs:36:1
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub mod tests;
[INFO] [stdout]    | ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloc::vec`
[INFO] [stdout]   --> src/tests/mod.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use alloc::vec;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stdout]   --> src/lib.rs:36:1
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub mod tests;
[INFO] [stdout]    | ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `x86_64::VirtAddr`
[INFO] [stdout]   --> src/tests/mod.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use x86_64::VirtAddr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stdout]   --> src/lib.rs:36:1
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub mod tests;
[INFO] [stdout]    | ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::error::KernelError`
[INFO] [stdout]   --> src/tests/ipc_tests.rs:7:5
[INFO] [stdout]    |
[INFO] [stdout]  7 | use crate::error::KernelError;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stdout]   --> src/tests/mod.rs:15:1
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub mod ipc_tests;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloc::vec::Vec`
[INFO] [stdout]   --> src/tests/ipc_tests.rs:9:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | use alloc::vec::Vec;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stdout]   --> src/tests/mod.rs:15:1
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub mod ipc_tests;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `String`
[INFO] [stdout]   --> src/tests/ipc_tests.rs:10:21
[INFO] [stdout]    |
[INFO] [stdout] 10 | use alloc::string::{String, ToString};
[INFO] [stdout]    |                     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stdout]   --> src/tests/mod.rs:15:1
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub mod ipc_tests;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: the `#[alloc_error_handler]` in this crate conflicts with allocation error handler in: std
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AllocError`
[INFO] [stdout]  --> src/memory/scalable.rs:6:47
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::error::{KernelError, KernelResult, AllocError};
[INFO] [stdout]   |                                               ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloc::sync::Arc`
[INFO] [stdout]   --> src/memory/scalable.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use alloc::sync::Arc;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `lazy_static::lazy_static`
[INFO] [stdout]   --> src/memory/scalable.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | use lazy_static::lazy_static;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `dealloc`
[INFO] [stdout]    --> src/memory/scalable.rs:459:39
[INFO] [stdout]     |
[INFO] [stdout] 459 |             use alloc::alloc::{alloc, dealloc, Layout};
[INFO] [stdout]     |                                       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `KernelError`
[INFO] [stdout]  --> src/process/mod.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::error::{KernelError, ProcessError};
[INFO] [stdout]   |                    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `KernelError`
[INFO] [stdout]  --> src/process/scheduler.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::error::{KernelError, ProcessError};
[INFO] [stdout]   |                    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloc::boxed::Box`
[INFO] [stdout]  --> src/process/scheduler.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use alloc::boxed::Box;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `PhysFrame` and `Translate`
[INFO] [stdout]  --> src/process/elf.rs:2:75
[INFO] [stdout]   |
[INFO] [stdout] 2 |     structures::paging::{OffsetPageTable, FrameAllocator, Size4KiB, Page, Translate, PhysFrame},
[INFO] [stdout]   |                                                                           ^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::memory::BootInfoFrameAllocator`
[INFO] [stdout]  --> src/process/stack.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::memory::BootInfoFrameAllocator;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::kerror`
[INFO] [stdout]  --> src/process/stack.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::kerror;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ProcessError`
[INFO] [stdout]  --> src/process/task.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::error::{KernelResult, ProcessError};
[INFO] [stdout]   |                                  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `KernelError` and `KernelResult`
[INFO] [stdout]  --> src/process/process_group.rs:3:20
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::error::{KernelError, KernelResult};
[INFO] [stdout]   |                    ^^^^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::kerror`
[INFO] [stdout]  --> src/process/process_group.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::kerror;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `set_current_process_id`
[INFO] [stdout]   --> src/ipc.rs:17:46
[INFO] [stdout]    |
[INFO] [stdout] 17 | use crate::syscall::{get_current_process_id, set_current_process_id};
[INFO] [stdout]    |                                              ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::allocator`
[INFO] [stdout]    --> src/cpu.rs:272:9
[INFO] [stdout]     |
[INFO] [stdout] 272 |     use crate::allocator;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloc::vec`
[INFO] [stdout]   --> src/testing.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use alloc::vec;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `String`
[INFO] [stdout]   --> src/tests/mod.rs:10:21
[INFO] [stdout]    |
[INFO] [stdout] 10 | use alloc::string::{String, ToString};
[INFO] [stdout]    |                     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloc::vec`
[INFO] [stdout]   --> src/tests/mod.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use alloc::vec;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `x86_64::VirtAddr`
[INFO] [stdout]   --> src/tests/mod.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use x86_64::VirtAddr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::error::KernelError`
[INFO] [stdout]  --> src/tests/ipc_tests.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::error::KernelError;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloc::vec::Vec`
[INFO] [stdout]  --> src/tests/ipc_tests.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use alloc::vec::Vec;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `String`
[INFO] [stdout]   --> src/tests/ipc_tests.rs:10:21
[INFO] [stdout]    |
[INFO] [stdout] 10 | use alloc::string::{String, ToString};
[INFO] [stdout]    |                     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `secure_rflags`
[INFO] [stdout]    --> src/gdt.rs:163:13
[INFO] [stdout]     |
[INFO] [stdout] 163 |         let secure_rflags = setup_secure_rflags();
[INFO] [stdout]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_secure_rflags`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/memory/scalable.rs:584:13
[INFO] [stdout]     |
[INFO] [stdout] 584 |         let mut mapper = self.get_process_page_table(target_pid)?;
[INFO] [stdout]     |             ----^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `mapper`
[INFO] [stdout]    --> src/memory/scalable.rs:584:13
[INFO] [stdout]     |
[INFO] [stdout] 584 |         let mut mapper = self.get_process_page_table(target_pid)?;
[INFO] [stdout]     |             ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mapper`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `memory::active_level_4_table` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/memory.rs:65:25
[INFO] [stdout]    |
[INFO] [stdout] 65 |     let level_4_table = active_level_4_table(physical_memory_offset);
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]   --> src/memory.rs:64:1
[INFO] [stdout]    |
[INFO] [stdout] 64 | pub unsafe fn init(physical_memory_offset: VirtAddr) -> OffsetPageTable<'static> {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `x86_64::structures::paging::OffsetPageTable::<'a>::new` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/memory.rs:68:18
[INFO] [stdout]    |
[INFO] [stdout] 68 |     let mapper = OffsetPageTable::new(level_4_table, physical_memory_offset);
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `x86_64::structures::paging::OffsetPageTable::<'a>::new` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/memory.rs:72:27
[INFO] [stdout]    |
[INFO] [stdout] 72 |     *MAPPER.lock() = Some(OffsetPageTable::new(active_level_4_table(physical_memory_offset), physical_memory_offset));
[INFO] [stdout]    |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `memory::active_level_4_table` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/memory.rs:72:48
[INFO] [stdout]    |
[INFO] [stdout] 72 |     *MAPPER.lock() = Some(OffsetPageTable::new(active_level_4_table(physical_memory_offset), physical_memory_offset));
[INFO] [stdout]    |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `x86_64::structures::paging::Mapper::update_flags` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/memory.rs:203:32
[INFO] [stdout]     |
[INFO] [stdout] 203 |     if let Ok(mapper_result) = mapper.update_flags(page, flags) {
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> src/memory.rs:198:1
[INFO] [stdout]     |
[INFO] [stdout] 198 | / pub unsafe fn set_guard_page(
[INFO] [stdout] 199 | |     page: Page,
[INFO] [stdout] 200 | |     mapper: &mut OffsetPageTable,
[INFO] [stdout] 201 | | ) {
[INFO] [stdout]     | |_^
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `frame`
[INFO] [stdout]    --> src/process/scheduler.rs:270:21
[INFO] [stdout]     |
[INFO] [stdout] 270 |         if let Some(frame) = page_table_frame {
[INFO] [stdout]     |                     ^^^^^ help: if this is intentional, prefix it with an underscore: `_frame`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/process/elf.rs:146:28
[INFO] [stdout]     |
[INFO] [stdout] 146 |             let dest_ptr = unsafe { (temp_virt.as_u64() + page_offset + i as u64) as *mut u8 };
[INFO] [stdout]     |                            ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/process/elf.rs:174:32
[INFO] [stdout]     |
[INFO] [stdout] 174 |                 let dest_ptr = unsafe { (temp_virt.as_u64() + page_offset + i) as *mut u8 };
[INFO] [stdout]     |                                ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `virt_addr`
[INFO] [stdout]    --> src/ipc.rs:490:21
[INFO] [stdout]     |
[INFO] [stdout] 490 |                 let virt_addr = VirtAddr::new(handle.range.start_addr.as_u64() + (i * 4096) as u64);
[INFO] [stdout]     |                     ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_virt_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `channel_id`
[INFO] [stdout]    --> src/tests/ipc_tests.rs:129:9
[INFO] [stdout]     |
[INFO] [stdout] 129 |     let channel_id = crate::ipc::syscalls::create_channel(2)
[INFO] [stdout]     |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `cpu_id` and `large_allocations` are never read
[INFO] [stdout]    --> src/memory/scalable.rs:131:5
[INFO] [stdout]     |
[INFO] [stdout] 129 | pub struct PerCpuAllocator {
[INFO] [stdout]     |            --------------- fields in this struct
[INFO] [stdout] 130 |     /// CPU ID
[INFO] [stdout] 131 |     cpu_id: usize,
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 135 |     large_allocations: Mutex<Vec<MemoryRegion>>,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `global_free_list` and `regions_by_type` are never read
[INFO] [stdout]    --> src/memory/scalable.rs:255:5
[INFO] [stdout]     |
[INFO] [stdout] 251 | pub struct GlobalMemoryManager {
[INFO] [stdout]     |            ------------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 255 |     global_free_list: Mutex<Vec<MemoryRegion>>,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 256 |     /// Memory regions by type
[INFO] [stdout] 257 |     regions_by_type: Mutex<[Vec<MemoryRegion>; 4]>, // Kernel, User, Device, Dma
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TaskWaker` is never constructed
[INFO] [stdout]    --> src/process/mod.rs:387:8
[INFO] [stdout]     |
[INFO] [stdout] 387 | struct TaskWaker {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `wake_task` and `new` are never used
[INFO] [stdout]    --> src/process/mod.rs:393:8
[INFO] [stdout]     |
[INFO] [stdout] 392 | impl TaskWaker {
[INFO] [stdout]     | -------------- associated items in this implementation
[INFO] [stdout] 393 |     fn wake_task(&self) {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 399 |     fn new(task_id: TaskId, task_queue: Arc<ArrayQueue<TaskId>>) -> core::task::Waker {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_next_async_task` and `get_next_task` are never used
[INFO] [stdout]   --> src/process/scheduler.rs:67:8
[INFO] [stdout]    |
[INFO] [stdout] 35 | impl Scheduler {
[INFO] [stdout]    | -------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 67 |     fn get_next_async_task(&mut self) -> Option<u64> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 77 |     fn get_next_task(&mut self) -> Option<(u64, TaskType)> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `waker_cache` is never read
[INFO] [stdout]   --> src/process/task.rs:65:5
[INFO] [stdout]    |
[INFO] [stdout] 60 | pub struct AsyncTask {
[INFO] [stdout]    |            --------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 65 |     waker_cache: BTreeMap<TaskId, core::task::Waker>,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TaskWaker` is never constructed
[INFO] [stdout]    --> src/process/task.rs:130:8
[INFO] [stdout]     |
[INFO] [stdout] 130 | struct TaskWaker {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `wake_task` and `new` are never used
[INFO] [stdout]    --> src/process/task.rs:136:8
[INFO] [stdout]     |
[INFO] [stdout] 135 | impl TaskWaker {
[INFO] [stdout]     | -------------- associated items in this implementation
[INFO] [stdout] 136 |     fn wake_task(&self) {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 142 |     fn new(task_id: TaskId, task_queue: Arc<ArrayQueue<TaskId>>) -> core::task::Waker {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `detect_circular_transfer` is never used
[INFO] [stdout]    --> src/ipc.rs:115:8
[INFO] [stdout]     |
[INFO] [stdout]  32 | impl HandleRegistry {
[INFO] [stdout]     | ------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 115 |     fn detect_circular_transfer(&self, from_pid: u64, to_pid: u64) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `handle_interrupt_exit` and `process_pending_work` are never used
[INFO] [stdout]    --> src/cpu.rs:126:8
[INFO] [stdout]     |
[INFO] [stdout]  60 | impl CpuData {
[INFO] [stdout]     | ------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 126 |     fn handle_interrupt_exit(&mut self) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 134 |     fn process_pending_work(&mut self) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `REGISTRY_INIT` is never used
[INFO] [stdout]    --> src/testing.rs:496:8
[INFO] [stdout]     |
[INFO] [stdout] 496 | static REGISTRY_INIT: bool = false;
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/memory/scalable.rs:274:31
[INFO] [stdout]     |
[INFO] [stdout] 274 |     fn get_process_page_table(&self, pid: u64) -> KernelResult<OffsetPageTable> {
[INFO] [stdout]     |                               ^^^^^                            ^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |                               |
[INFO] [stdout]     |                               the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]     = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 274 |     fn get_process_page_table(&self, pid: u64) -> KernelResult<OffsetPageTable<'_>> {
[INFO] [stdout]     |                                                                               ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]   --> src/syscall.rs:72:45
[INFO] [stdout]    |
[INFO] [stdout] 72 |     if stack_ptr < 0xFFFF_8000_0000_0000 || stack_ptr > 0xFFFF_FFFF_FFFF_FFFF {
[INFO] [stdout]    |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]    --> src/syscall.rs:105:20
[INFO] [stdout]     |
[INFO] [stdout] 105 |     if addr < 0 || addr > 0x7FFF_FFFF_FFFF_FFFF {
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]    --> src/testing/boot_check.rs:245:9
[INFO] [stdout]     |
[INFO] [stdout] 245 |         current_pid >= 0 // Basic sanity check
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]    --> src/testing/boot_check.rs:256:9
[INFO] [stdout]     |
[INFO] [stdout] 256 |         current_pid >= 0
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0133`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `secure_rflags`
[INFO] [stdout]    --> src/gdt.rs:163:13
[INFO] [stdout]     |
[INFO] [stdout] 163 |         let secure_rflags = setup_secure_rflags();
[INFO] [stdout]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_secure_rflags`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `secure_rflags`
[INFO] [stdout]    --> src/gdt.rs:163:13
[INFO] [stdout]     |
[INFO] [stdout] 163 |         let secure_rflags = setup_secure_rflags();
[INFO] [stdout]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_secure_rflags`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/memory/scalable.rs:584:13
[INFO] [stdout]     |
[INFO] [stdout] 584 |         let mut mapper = self.get_process_page_table(target_pid)?;
[INFO] [stdout]     |             ----^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `mapper`
[INFO] [stdout]    --> src/memory/scalable.rs:584:13
[INFO] [stdout]     |
[INFO] [stdout] 584 |         let mut mapper = self.get_process_page_table(target_pid)?;
[INFO] [stdout]     |             ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mapper`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `memory::active_level_4_table` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/memory.rs:65:25
[INFO] [stdout]    |
[INFO] [stdout] 65 |     let level_4_table = active_level_4_table(physical_memory_offset);
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]   --> src/memory.rs:64:1
[INFO] [stdout]    |
[INFO] [stdout] 64 | pub unsafe fn init(physical_memory_offset: VirtAddr) -> OffsetPageTable<'static> {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `x86_64::structures::paging::OffsetPageTable::<'a>::new` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/memory.rs:68:18
[INFO] [stdout]    |
[INFO] [stdout] 68 |     let mapper = OffsetPageTable::new(level_4_table, physical_memory_offset);
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `x86_64::structures::paging::OffsetPageTable::<'a>::new` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/memory.rs:72:27
[INFO] [stdout]    |
[INFO] [stdout] 72 |     *MAPPER.lock() = Some(OffsetPageTable::new(active_level_4_table(physical_memory_offset), physical_memory_offset));
[INFO] [stdout]    |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `memory::active_level_4_table` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/memory.rs:72:48
[INFO] [stdout]    |
[INFO] [stdout] 72 |     *MAPPER.lock() = Some(OffsetPageTable::new(active_level_4_table(physical_memory_offset), physical_memory_offset));
[INFO] [stdout]    |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `x86_64::structures::paging::Mapper::update_flags` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/memory.rs:203:32
[INFO] [stdout]     |
[INFO] [stdout] 203 |     if let Ok(mapper_result) = mapper.update_flags(page, flags) {
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> src/memory.rs:198:1
[INFO] [stdout]     |
[INFO] [stdout] 198 | / pub unsafe fn set_guard_page(
[INFO] [stdout] 199 | |     page: Page,
[INFO] [stdout] 200 | |     mapper: &mut OffsetPageTable,
[INFO] [stdout] 201 | | ) {
[INFO] [stdout]     | |_^
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `frame`
[INFO] [stdout]    --> src/process/scheduler.rs:270:21
[INFO] [stdout]     |
[INFO] [stdout] 270 |         if let Some(frame) = page_table_frame {
[INFO] [stdout]     |                     ^^^^^ help: if this is intentional, prefix it with an underscore: `_frame`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/memory/scalable.rs:584:13
[INFO] [stdout]     |
[INFO] [stdout] 584 |         let mut mapper = self.get_process_page_table(target_pid)?;
[INFO] [stdout]     |             ----^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `mapper`
[INFO] [stdout]    --> src/memory/scalable.rs:584:13
[INFO] [stdout]     |
[INFO] [stdout] 584 |         let mut mapper = self.get_process_page_table(target_pid)?;
[INFO] [stdout]     |             ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mapper`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `memory::active_level_4_table` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/memory.rs:65:25
[INFO] [stdout]    |
[INFO] [stdout] 65 |     let level_4_table = active_level_4_table(physical_memory_offset);
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]   --> src/memory.rs:64:1
[INFO] [stdout]    |
[INFO] [stdout] 64 | pub unsafe fn init(physical_memory_offset: VirtAddr) -> OffsetPageTable<'static> {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/process/elf.rs:146:28
[INFO] [stdout]     |
[INFO] [stdout] 146 |             let dest_ptr = unsafe { (temp_virt.as_u64() + page_offset + i as u64) as *mut u8 };
[INFO] [stdout]     |                            ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/process/elf.rs:174:32
[INFO] [stdout]     |
[INFO] [stdout] 174 |                 let dest_ptr = unsafe { (temp_virt.as_u64() + page_offset + i) as *mut u8 };
[INFO] [stdout]     |                                ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `x86_64::structures::paging::OffsetPageTable::<'a>::new` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/memory.rs:68:18
[INFO] [stdout]    |
[INFO] [stdout] 68 |     let mapper = OffsetPageTable::new(level_4_table, physical_memory_offset);
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `x86_64::structures::paging::OffsetPageTable::<'a>::new` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/memory.rs:72:27
[INFO] [stdout]    |
[INFO] [stdout] 72 |     *MAPPER.lock() = Some(OffsetPageTable::new(active_level_4_table(physical_memory_offset), physical_memory_offset));
[INFO] [stdout]    |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `memory::active_level_4_table` is unsafe and requires unsafe block
[INFO] [stdout]   --> src/memory.rs:72:48
[INFO] [stdout]    |
[INFO] [stdout] 72 |     *MAPPER.lock() = Some(OffsetPageTable::new(active_level_4_table(physical_memory_offset), physical_memory_offset));
[INFO] [stdout]    |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `x86_64::structures::paging::Mapper::update_flags` is unsafe and requires unsafe block
[INFO] [stdout]    --> src/memory.rs:203:32
[INFO] [stdout]     |
[INFO] [stdout] 203 |     if let Ok(mapper_result) = mapper.update_flags(page, flags) {
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> src/memory.rs:198:1
[INFO] [stdout]     |
[INFO] [stdout] 198 | / pub unsafe fn set_guard_page(
[INFO] [stdout] 199 | |     page: Page,
[INFO] [stdout] 200 | |     mapper: &mut OffsetPageTable,
[INFO] [stdout] 201 | | ) {
[INFO] [stdout]     | |_^
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `frame`
[INFO] [stdout]    --> src/process/scheduler.rs:270:21
[INFO] [stdout]     |
[INFO] [stdout] 270 |         if let Some(frame) = page_table_frame {
[INFO] [stdout]     |                     ^^^^^ help: if this is intentional, prefix it with an underscore: `_frame`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/process/elf.rs:146:28
[INFO] [stdout]     |
[INFO] [stdout] 146 |             let dest_ptr = unsafe { (temp_virt.as_u64() + page_offset + i as u64) as *mut u8 };
[INFO] [stdout]     |                            ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/process/elf.rs:174:32
[INFO] [stdout]     |
[INFO] [stdout] 174 |                 let dest_ptr = unsafe { (temp_virt.as_u64() + page_offset + i) as *mut u8 };
[INFO] [stdout]     |                                ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `virt_addr`
[INFO] [stdout]    --> src/ipc.rs:490:21
[INFO] [stdout]     |
[INFO] [stdout] 490 |                 let virt_addr = VirtAddr::new(handle.range.start_addr.as_u64() + (i * 4096) as u64);
[INFO] [stdout]     |                     ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_virt_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/main.rs:150:5
[INFO] [stdout]     |
[INFO] [stdout] 146 |         ruix::gdt::jump_to_user_mode(VirtAddr::new(entry_point1), user_stack_top);
[INFO] [stdout]     |         ------------------------------------------------------------------------- any code following this expression is unreachable
[INFO] [stdout] ...
[INFO] [stdout] 150 |     println!("ERROR: Returned from user mode jump!");
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]     = note: this warning originates in the macro `$crate::print` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `channel_id`
[INFO] [stdout]    --> src/tests/ipc_tests.rs:129:9
[INFO] [stdout]     |
[INFO] [stdout] 129 |     let channel_id = crate::ipc::syscalls::create_channel(2)
[INFO] [stdout]     |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:74:9
[INFO] [stdout]    |
[INFO] [stdout] 74 |     let mut frame_allocator2 = unsafe { BootInfoFrameAllocator::init(&boot_info.memory_map) };
[INFO] [stdout]    |         ----^^^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `virt_addr`
[INFO] [stdout]    --> src/ipc.rs:490:21
[INFO] [stdout]     |
[INFO] [stdout] 490 |                 let virt_addr = VirtAddr::new(handle.range.start_addr.as_u64() + (i * 4096) as u64);
[INFO] [stdout]     |                     ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_virt_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `cpu_id` and `large_allocations` are never read
[INFO] [stdout]    --> src/memory/scalable.rs:131:5
[INFO] [stdout]     |
[INFO] [stdout] 129 | pub struct PerCpuAllocator {
[INFO] [stdout]     |            --------------- fields in this struct
[INFO] [stdout] 130 |     /// CPU ID
[INFO] [stdout] 131 |     cpu_id: usize,
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 135 |     large_allocations: Mutex<Vec<MemoryRegion>>,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `global_free_list` and `regions_by_type` are never read
[INFO] [stdout]    --> src/memory/scalable.rs:255:5
[INFO] [stdout]     |
[INFO] [stdout] 251 | pub struct GlobalMemoryManager {
[INFO] [stdout]     |            ------------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 255 |     global_free_list: Mutex<Vec<MemoryRegion>>,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 256 |     /// Memory regions by type
[INFO] [stdout] 257 |     regions_by_type: Mutex<[Vec<MemoryRegion>; 4]>, // Kernel, User, Device, Dma
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TaskWaker` is never constructed
[INFO] [stdout]    --> src/process/mod.rs:387:8
[INFO] [stdout]     |
[INFO] [stdout] 387 | struct TaskWaker {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `wake_task` and `new` are never used
[INFO] [stdout]    --> src/process/mod.rs:393:8
[INFO] [stdout]     |
[INFO] [stdout] 392 | impl TaskWaker {
[INFO] [stdout]     | -------------- associated items in this implementation
[INFO] [stdout] 393 |     fn wake_task(&self) {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 399 |     fn new(task_id: TaskId, task_queue: Arc<ArrayQueue<TaskId>>) -> core::task::Waker {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_next_async_task` and `get_next_task` are never used
[INFO] [stdout]   --> src/process/scheduler.rs:67:8
[INFO] [stdout]    |
[INFO] [stdout] 35 | impl Scheduler {
[INFO] [stdout]    | -------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 67 |     fn get_next_async_task(&mut self) -> Option<u64> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 77 |     fn get_next_task(&mut self) -> Option<(u64, TaskType)> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `waker_cache` is never read
[INFO] [stdout]   --> src/process/task.rs:65:5
[INFO] [stdout]    |
[INFO] [stdout] 60 | pub struct AsyncTask {
[INFO] [stdout]    |            --------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 65 |     waker_cache: BTreeMap<TaskId, core::task::Waker>,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TaskWaker` is never constructed
[INFO] [stdout]    --> src/process/task.rs:130:8
[INFO] [stdout]     |
[INFO] [stdout] 130 | struct TaskWaker {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `wake_task` and `new` are never used
[INFO] [stdout]    --> src/process/task.rs:136:8
[INFO] [stdout]     |
[INFO] [stdout] 135 | impl TaskWaker {
[INFO] [stdout]     | -------------- associated items in this implementation
[INFO] [stdout] 136 |     fn wake_task(&self) {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 142 |     fn new(task_id: TaskId, task_queue: Arc<ArrayQueue<TaskId>>) -> core::task::Waker {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `detect_circular_transfer` is never used
[INFO] [stdout]    --> src/ipc.rs:115:8
[INFO] [stdout]     |
[INFO] [stdout]  32 | impl HandleRegistry {
[INFO] [stdout]     | ------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 115 |     fn detect_circular_transfer(&self, from_pid: u64, to_pid: u64) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `handle_interrupt_exit` and `process_pending_work` are never used
[INFO] [stdout]    --> src/cpu.rs:126:8
[INFO] [stdout]     |
[INFO] [stdout]  60 | impl CpuData {
[INFO] [stdout]     | ------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 126 |     fn handle_interrupt_exit(&mut self) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 134 |     fn process_pending_work(&mut self) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `REGISTRY_INIT` is never used
[INFO] [stdout]    --> src/testing.rs:496:8
[INFO] [stdout]     |
[INFO] [stdout] 496 | static REGISTRY_INIT: bool = false;
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/memory/scalable.rs:274:31
[INFO] [stdout]     |
[INFO] [stdout] 274 |     fn get_process_page_table(&self, pid: u64) -> KernelResult<OffsetPageTable> {
[INFO] [stdout]     |                               ^^^^^                            ^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |                               |
[INFO] [stdout]     |                               the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]     = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 274 |     fn get_process_page_table(&self, pid: u64) -> KernelResult<OffsetPageTable<'_>> {
[INFO] [stdout]     |                                                                               ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]   --> src/syscall.rs:72:45
[INFO] [stdout]    |
[INFO] [stdout] 72 |     if stack_ptr < 0xFFFF_8000_0000_0000 || stack_ptr > 0xFFFF_FFFF_FFFF_FFFF {
[INFO] [stdout]    |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]    --> src/syscall.rs:105:20
[INFO] [stdout]     |
[INFO] [stdout] 105 |     if addr < 0 || addr > 0x7FFF_FFFF_FFFF_FFFF {
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]    --> src/testing/boot_check.rs:245:9
[INFO] [stdout]     |
[INFO] [stdout] 245 |         current_pid >= 0 // Basic sanity check
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]    --> src/testing/boot_check.rs:256:9
[INFO] [stdout]     |
[INFO] [stdout] 256 |         current_pid >= 0
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0133`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `channel_id`
[INFO] [stdout]    --> src/tests/ipc_tests.rs:129:9
[INFO] [stdout]     |
[INFO] [stdout] 129 |     let channel_id = crate::ipc::syscalls::create_channel(2)
[INFO] [stdout]     |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0133`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `ruix` (lib test) due to 1 previous error; 35 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error: the `#[alloc_error_handler]` in ruix conflicts with allocation error handler in: std
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl`
[INFO] [stdout]   --> src/main.rs:34:1
[INFO] [stdout]    |
[INFO] [stdout] 34 | / fn panic(_info: &PanicInfo) -> ! {
[INFO] [stdout] 35 | |     // やった！パニックを表示できた！
[INFO] [stdout] 36 | |     println!("{}", _info);
[INFO] [stdout] ...  |
[INFO] [stdout] 39 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: the lang item is first defined in crate `std` (which `test` depends on)
[INFO] [stdout]    = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/622891a4e29178280638a6b63a8908bde2c0c854/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-ebc3593764c44f83.rmeta
[INFO] [stdout]    = note: second definition in the local crate (`ruix`)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0152`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `ruix` (bin "ruix" test) due to 2 previous errors
[INFO] running `Command { std: "docker" "inspect" "6b74c977618644595f8263ed86ed8ae1960b8e73ab59393b29f113160a15e468", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6b74c977618644595f8263ed86ed8ae1960b8e73ab59393b29f113160a15e468", kill_on_drop: false }`
[INFO] [stdout] 6b74c977618644595f8263ed86ed8ae1960b8e73ab59393b29f113160a15e468
